﻿using Leafing.Data.Definition;

namespace Modeling
{
    [Serializable]
    [DbTable("ERP_SALESORDER"),DbContext("MIDDB")]
    public class ERP_SALESORDER : IDbObject
    {
        [DbKey(IsDbGenerate = false)] [Length(5)] public string? ORDERNO { get; set; }
        [AllowNull] [Length(25)] public string? BILLTO { get; set; }
        public DateTime? DUEDATE { get; set; }
        public int? LINEID { get; set; }
        [AllowNull] [Length(5)] public string? MATERIALNO { get; set; }
        [AllowNull] [Length(20)] public string? MATERIALNAME { get; set; }
        [AllowNull] [Length(15)] public string? SPEC { get; set; }
        public System.Decimal? QTY { get; set; }
        public DateTime? CHANGEDATE { get; set; }
        public DateTime? APPROVEDATE { get; set; }
    }

    [Serializable]
    [DbTable("EIP_USERINFO")]
    public class EIP_USERINFO : IDbObject
    {
        [Length(12)] public string? USER_ID { get; set; }
        public System.Decimal? USER_NUM { get; set; }
        [DbKey(IsDbGenerate = false)]
        [AllowNull] [Length(12)] [Index(UNIQUE = true)] public string? USER_ACCOUNT { get; set; }
        [AllowNull] [Length(12)] public string? USER_PWD { get; set; }
        [AllowNull] [Length(12)] public string? USER_NAME { get; set; }
        public System.Decimal? USER_SEX { get; set; }
        [AllowNull] [Length(5)] public string? MOBILE { get; set; }
        [AllowNull] [Length(12)] public string? EMAIL { get; set; }
        public System.Decimal? ENABLE { get; set; }
        [AllowNull] [Length(5)] public string? USER_LANGUAGE { get; set; }
        [AllowNull] [Length(5)] public string? THEME { get; set; }
        public DateTime? CREATE_DATE { get; set; }
        [AllowNull] [Length(12)] public string? CREATE_USERID { get; set; }
        public DateTime? MODIFY_DATE { get; set; }
        [AllowNull] [Length(12)] public string? MODIFY_USERID { get; set; }
        [AllowNull] [Length(50)] public string? USER_REMARK { get; set; }
        public System.Decimal? ONLINE_STATE { get; set; }
        public DateTime? LOGIN_DATE { get; set; }
        [AllowNull] [Length(12)] public string? USER_TAG { get; set; }
    }
}
